/*
 * Created on 08/24/2011 - 10:30 AM
 */
package sembr.geometry.interfacing;

import java.util.ArrayList;

/**
 *
 * @author Adriano
 */
public class DataSetExporter extends DataSet
{
    protected ArrayList<Shape> shapes;
    
    public DataSetExporter()
    {
        shapes = new ArrayList<Shape>();        
    }
    
    protected void add(Shape shape)
    {
        shapes.add(shape);
    }
    
    @Override
    public ArrayList<Shape> getShapes() 
    {
        if (shapes.isEmpty())
            throw new EmptyShapeException();
            
        return shapes;
    }       
}
